import http from '@/utils/http'
import type { Hot, Rank, Seller, Trend ,Map} from '@/types/eCommerce'

export const getSellerAPI = () => {
  return http<Seller[]>({
    method: 'get',
    url: '/home/e-commerce/seller'
  })
}

export const getTrendAPI = () => {
  return http<Trend[]>({
    method: 'get',
    url: '/home/e-commerce/trend'
  })
}


export const getRankAPI = () => {
  return http<Rank[]>({
    method: 'get',
    url: '/home/e-commerce/rank'
  })
}

export const getHotAPI = () => {
  return http<Hot[]>({
    method: 'get',
    url: '/home/e-commerce/hot'
  })
}

export const getMapAPI=()=>{
  return http<Map[]>({
    method:'GET',
    url:'/home/e-commerce/map'
  })
}